package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.*;
import java.util.Date;

@Data
@Alias(value = "dmcRfidEvent")
@Table(name = "cn_dmc_rfid_event")
@EqualsAndHashCode(callSuper = true)
public class DmcRfidEvent extends BaseEntity {

    private static final long serialVersionUID = -8544565043985281848L;

    /**
     * 门禁读卡器Id
     */
    @Column(name = "reader_id")
    private Long readerId;

    /**
     * 门禁读卡器编号
     */
    @Column(name = "reader_no")
    private String readerNo;

    /**
     * 门禁卡标签Id
     */
    @Column(name = "label_id")
    private Long labelId;

    /**
     * 门禁卡标签编号
     */
    @Column(name = "label_no")
    private String labelNo;

    /**
     * 持卡人id
     */
    @Column(name = "oldman_id")
    private Long oldmanId;

    /**
     * 持卡人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 门禁卡角色
     */
    @Column(name = "role_id")
    private Long roleId;

    /**
     * 门禁卡角色编码
     */
    @Column(name = "role_code")
    private String roleCode;

    /**
     * 门禁卡角色名称
     */
    @Column(name = "role_name")
    private String roleName;

    /**
     * 门禁控制器位置
     */
    private String location;

    /**
     * 机构Id
     */
    @Column(name = "group_id")
    private Long groupId;

}